import request from "../../utils/request.js";

//告警分类报表
export const getAlarmCategoryApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/AlarmCategory", //请求地址
    params: query
  });
};



/**
 * 告警分时报表
 * @param {*} query 
 * @returns 
 */
export const gettAlarmTime_Api = (query) => request.get("/dataPresentation/AlarmTime", {
  params: query
})


export const getDetailApi = (eventids) => {
  return request({
    method: "GET", //请求方式
    url: "/dataPresentation/detail/" + eventids, //请求地址
  });
};
/**
 * 告警来源报表
 * @param {*} query 
 * @returns 
 */
export const getAlarmSourceApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/AlarmSource", //请求地址
    params: query
  });
};

/**
 * 告警来源报表
 * @param {*} query 
 * @returns 
 */
export const getqueryApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/network/query", //请求地址
    params: query
  });
};
/**
 * 干网删除
 * @param {*} query  
 * @returns 
 */
export const delganwangApi = (networkId) => request.delete("/network/" + networkId)


export const editganwangApi = (data) =>
  request.put("/network/edit", data);

/**
 * 考核信息
 * @param {*} query 
 * @returns 
 */
export const getexamineApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/system/examine/list", //请求地址
    params: query
  });
};
